using System;
using System.Runtime.Serialization;

namespace BusinessFramework
{
    // TODO: Rename Info?
    public class BrokenRule
    {
        public BrokenRule() { }

        public BrokenRule(string message, BrokenRuleSeverity severity, string owner) 
            : this(message, severity, owner, false)
        {
        }

        public BrokenRule(string message, BrokenRuleSeverity severity, string owner, bool isOneTime)
        {
            IsOneTime = isOneTime;
            Message = message;
            Severity = severity;
            Owner = owner;
        }

        public string Message { get; set; }
        public BrokenRuleSeverity Severity { get; set; }
        public string Owner { get; set; }
        public bool IsOneTime { get; set; }

        public override string ToString()
        {
            return Message;
        }
    }
}